package com.zhuiyun.project.api.plan.fitnessPlanActionGroup.mapper;

import com.zhuiyun.project.api.plan.fitnessPlanActionGroup.entity.FitnessPlanActionGroup;
import com.zhuiyun.project.api.plan.fitnessPlanActionGroup.model.FitnessPlanActionGroupModel;
import com.zhuiyun.project.utils.pageUtil.PageRequest;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
public interface FitnessPlanActionGroupMapper {
    /**
     * @Author 杨珅
     * @Description todo 健身计划动作分页查询
     * @Date 2023/11/2 9:28
     * @Return  * @param null
     */
    public List<FitnessPlanActionGroupModel> selectAll(PageRequest pageRequest, Integer planActionId);
    /**
     * @Author 杨珅
     * @Description todo 查询健身计划动作总组
     * @Date 2023/11/2 9:28
     * @Return  * @param null
     */
    public List<FitnessPlanActionGroupModel> selectGroupCount( Integer planActionId);
    /**
     * @Author 杨珅
     * @Description todo 根据动作id查询健身计划动作组
     * @Date 2023/11/2 9:28
     * @Return  * @param null
     */
    public int selectGroupAll(Integer planActionId);
//    /**
//     * @Author 杨珅
//     * @Description todo 根据目的id全查标签
//     * @Date 2023/11/2 9:28
//     * @Return  * @param null
//     */
//    public List<FitnessType> selectTypes(PageRequest pageRequest, Integer fitnessPurposeId);
    /**
     * @Author 杨珅
     * @Description todo 健身计划动作组新增
     * @Date 2023/11/2 9:28
     * @Return  * @param null
     */
    public int insertFitnessPlanActionGroup(FitnessPlanActionGroupModel fitnessPlanActionGroupModel);
    /**
     * @Author 杨珅
     * @Description todo 健身计划动作组修改
     * @Date 2023/11/2 9:28
     * @Return  * @param null
     */
    public int updateFitnessPlanActionGroup(FitnessPlanActionGroup fitnessPlanActionGroup);
    /**
     * @Author 杨珅
     * @Description todo 健身计划动作组删除
     * @Date 2023/11/2 9:28
     * @Return  * @param null
     */
    public int deleteFitnessPlanActionGroup(FitnessPlanActionGroup fitnessPlanActionGroup);
}
